<?php
/**
 * 发货方式和渠道关联表
 */
class Application_Model_Expressbychannel extends Application_Model_DomainObject{
    
    protected $_id;
    
    protected $_expressId;
    
    protected $_expressChannelId;
    
    public static function getChannelIdByExpress($channelId)
    {
        return self::getDao()->queryOne(array("expressChannelId" => $channelId));
    }
    
    public static function getExpressIdByChannel($expressId)
    {
        return self::getDao()->queryAll(array("expressId" => $expressId));
    }
}